<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'welcomeBanner.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	
	</head>

	<body>
		<tr>
			<td class="welcomeBanner">

				<s:if test="#session.userInfo==null">
						欢迎您：游客！请先
					<a href="forum/jsp/login.jsp">登录</a>或
					<a href="forum/jsp/register.jsp">注册</a>
				</s:if>
				<s:else>
					<span>欢迎您 ！ <s:property value="#session.userInfo.name" /> </span>
					<span><s:a action="loginregister" method="logout" namespace="/">注销</s:a> </span>
					<span><a href="forum/jsp/userHome.jsp">个人信息</a></span>
					<s:if test="#session.userInfo.name=='admin'">
						<span><a href="forum/jsp/admin.jsp">论坛管理</a></span>
					</s:if>
				</s:else>
			</td>
		</tr>
		
	</body>
</html>
